﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="HandleGathering.aspx.cs" Inherits="HandleGathering" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <script type="text/javascript" language="javascript" src="../My97DatePicker/WdatePicker.js"></script>
    <link href="../My97DatePicker/skin/WdatePicker.css" type="text/css" rel="Stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <h2>
        财务补录收款</h2>
    <div>
        <fieldset>
            <legend>公司</legend>
            <table class="commontb">
                <tr>
                    <td style="width: 15%">
                        公司编号
                    </td>
                    <td style="width: 35%">
                        <asp:Label ID="CompanyID" runat="server" Text=""></asp:Label>
                    </td>
                    <td style="width: 15%">
                        注册地
                    </td>
                    <td style="width: 35%">
                        <asp:Label ID="RegisterRegion" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        公司英文名
                    </td>
                    <td colspan="3">
                        <asp:Label ID="EnglishName" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        公司中文名
                    </td>
                    <td colspan="3">
                        <asp:Label ID="ChineseName" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
            </table>
        </fieldset>
        <fieldset>
            <legend>下单详情</legend>
            <table class="commontb">
                <tr>
                    <td style="width: 15%">
                        下单时间
                    </td>
                    <td style="width: 35%">
                        <asp:Label ID="OrderTime" runat="server" Text=""></asp:Label>
                    </td>
                    <td style="width: 15%">
                        委托类型
                    </td>
                    <td style="width: 35%">
                        <asp:Label ID="DelegateType" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        成交价格
                    </td>
                    <td>
                        <asp:Label ID="Price" runat="server" Text=""></asp:Label>
                    </td>
                    <td>
                        币种
                    </td>
                    <td>
                        <asp:Label ID="CurrencyType" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        交易分行
                    </td>
                    <td>
                        <asp:Label ID="Branch" runat="server" Text=""></asp:Label>
                    </td>
                    <td>
                        业务员
                    </td>
                    <td>
                        <asp:Label ID="Empolyee" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        备注
                    </td>
                    <td colspan="3">
                        <asp:Label ID="OrderRemark" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
            </table>
        </fieldset>
        <fieldset>
            <legend>支付明细 </legend>
            
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="PayDealID"
                DataSourceID="SqlDataSource1" CssClass="commongv">
                <Columns>
                    <asp:BoundField DataField="PayDealID" HeaderText="交易号" InsertVisible="False" ReadOnly="True"
                        SortExpression="PayDealID" Visible="false" />
                    <asp:BoundField DataField="OrderID" HeaderText="订单号" SortExpression="OrderID" Visible="false" />
                    <asp:BoundField DataField="PayType" HeaderText="支付类型" SortExpression="PayType" />
                    <asp:BoundField DataField="PayDate" HeaderText="支付时间" SortExpression="PayDate" DataFormatString="{0:yyyy-MM-dd}" />
                    <asp:BoundField DataField="Amount" HeaderText="金额" SortExpression="Amount" DataFormatString="{0:0}" />
                    <asp:BoundField DataField="Bank" HeaderText="Bank" SortExpression="Bank" Visible="false" />
                    <asp:BoundField DataField="Remark" HeaderText="备注" SortExpression="Remark" />
                </Columns>
            </asp:GridView>
            <div style="margin:8px 0px 6px 0px;text-align:right;">
                <asp:Button ID="Button2" 
                    runat="server" Text="返回" 
                onclick="Button2_Click" /></div>
            <h3>
                新增入账</h3>
            <hr />
            <table class="commontb">
                <tr>
                    <td style="width: 15%">
                        付款类型
                    </td>
                    <td>
                        <asp:DropDownList ID="DropDownList1" runat="server">
                            <asp:ListItem Value="1">首款</asp:ListItem>
                            <asp:ListItem Value="2">中间款</asp:ListItem>
                            <asp:ListItem Value="3">尾款</asp:ListItem>
                            <asp:ListItem Value="4">收少了</asp:ListItem>
                            <asp:ListItem Value="5">收多了</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        交易时间
                    </td>
                    <td>
                        <asp:TextBox ID="PayDate" runat="server" onfocus="WdatePicker()" CssClass="Wdate"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        收款银行
                    </td>
                    <td>
                        <asp:DropDownList ID="DropDownList2" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        金额
                    </td>
                    <td>
                        <asp:TextBox ID="Amount" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        备注
                    </td>
                    <td>
                        <asp:TextBox ID="Remark" runat="server" Width="400px"></asp:TextBox>
                    </td>
                </tr>
            </table>
            <div>
                <asp:Label runat="Server" ID="ErrorMessage" Text="" CssClass="errornotify"></asp:Label>
                <asp:Button ID="Button1" runat="server" Text="入账" CssClass="confirmbtn" OnClick="Button1_Click" />
                
            </div>
        </fieldset>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:KOONCRMDB %>"
            SelectCommand="Payment_FindRecordByOrderID" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:QueryStringParameter Name="OrderID" QueryStringField="OrderID" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
    </div>
</asp:Content>
